<!DOCTYPE html>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <title>登录系统</title>
    <meta name="description" content="后台管理框架">
    <link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
    <link href="../static/custom/css/cust-ui.css" th:href="@{/custom/css/cust-ui.css?v=4.2.0}" rel="stylesheet"/>
    <link href="../static/css/style.css" th:href="@{/css/style.css}" rel="stylesheet"/>
    <link href="../static/css/login.css" th:href="@{/css/login.css}" rel="stylesheet"/>
     <!--[if IE 8]> 
    <link href="../static/css/loginIE.css" th:href="@{/css/loginIE.css}" rel="stylesheet"/>
	<![endif]-->
    <!-- 360浏览器急速模式 -->
    <meta name="renderer" content="webkit">
    <!-- 避免IE使用兼容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="shortcut icon" href="../static/favicon.ico" th:href="@{favicon.ico}"/>
    <style type="text/css">label.error { position:inherit; left: 0;top:0; }</style>
    <script>
        if(window.top!==window.self){alert('未登录或登录超时。请重新登录');window.top.location=window.location};
    </script>
</head>
<body class="signin">
    <div class="signinpanel">
        <div class="row">
            <div class="col-sm-7 col-ie8-left">
                <div class="signin-info">
                    <div class="logopanel m-b">
                        <h1><img class="logo-img" alt="[ 银雁 ]" src="../static/logo.png" th:src="@{/logo.png}"></h1>
                    </div>
                    <div class="m-b"></div>
                    <h4>欢迎使用 <strong>银雁 后台管理系统</strong></h4>
                    <ul class="m-b">
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> SpringBoot</li>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Mybatis</li>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Thymeleaf</li>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Bootstrap</li>
                    </ul>
                    <strong >还没有账号？ <a th:href="@{/register}">立即注册&raquo;</a></strong>
                </div>
            </div>
            <div class="col-sm-5 col-ie8-right">
                <form id="signupForm" th:action="@{/j_login}" th:method="post" autocomplete="off">
                    <h4 class="no-margins">登录：</h4>  
                    <div class="input-parent">  
	                   <select id="tenantSelect" class="form-control tenant" name="tenant" placeholder="请选择租户" ></select>   
					</div>     
	               <div class="input-parent"><input type="text"     name="username" class="form-control uname"     placeholder="登录名"  /></div>
	               <div class="input-parent"><input type="password" id="password" name="password" class="form-control pword"     placeholder="密码"  /></div>
					<div class="row login-input m-t">
						<div class="col-xs-6 kaptcha-input">
						    <div class="input-parent"><input type="text" id="kaptcha" name="kaptcha" class="form-control code checkcode" placeholder="验证码" maxlength="4" /></div>
						</div>
						<div class="col-xs-6">
							<a href="javascript:void(0);" title="点击更换验证码">
								<img th:src="@{/captcha?type=math}" class="imgcode" width="85%"/>
							</a>
						</div>
					</div>
                    <div class="checkbox-custom m-t">				       
				    	<strong><a th:href="@{/forgetPwd}">忘记密码&raquo;</a></strong>
				    	 <!-- <input type="checkbox" id="remember-me" name="remember-me"> <label for="remember-me">记住我</label> -->
				    </div>
				    <button type="button" class="btn btn-success btn-block" id="btnSubmit" data-loading="正在验证登录，请稍后...">登录</button>
                    <!-- <button type="button" class="btn btn-success btn-block" id="btnSubmit" onclick="submitHandler" data-loading="正在验证登录，请稍后...">登录</button> -->
                </form>
            </div>
        </div>
        <div class="signup-footer">
            <div class="pull-left">
                 	银雁 &copy; 版权所有  粤ICP备08015738号. <br>
            </div>
        </div>
    </div>
<script th:inline="javascript"> var ctx = [[@{/}]]; </script>
<!-- 全局js -->
<script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
<script src="../static/js/bootstrap.min.js" th:src="@{/js/bootstrap.min.js}"></script>
<script src="../static/js/ieCompatible.js" th:src="@{/js/ieCompatible.js}"></script>
<!-- 验证插件 -->
<script src="../static/ajax/libs/validate/jquery.validate.min.js" th:src="@{/ajax/libs/validate/jquery.validate.min.js}"></script>
<script src="../static/ajax/libs/validate/messages_zh.min.js" th:src="@{/ajax/libs/validate/messages_zh.min.js}"></script>
<script src="../static/ajax/libs/layer/layer.min.js" th:src="@{/ajax/libs/layer/layer.min.js}"></script>
<script src="../static/ajax/libs/blockUI/jquery.blockUI.js" th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}"></script>
<script src="../static/custom/js/cust-ui.js" th:src="@{/custom/js/cust-ui.js?v=4.2.0}"></script>
<script th:src="@{/js/algorithm/aes.js}"></script>
<script th:src="@{/js/algorithm/mode-ecb-min.js}"></script>
<script th:src="@{/js/util/AESUtil.js}"></script>
<script src="../static/pages/home/login.js" th:src="@{/pages/home/login.js}"></script>
<script th:inline="javascript">
	/*<![CDATA[*/
		$(document).ready(function(){
		   var lasterror = [[${session.SPRING_SECURITY_LAST_EXCEPTION}]];
		   if (lasterror != null)
		   {
			    var errmsg = lasterror.message;
			    $.modal.closeLoading();
           		$('.imgcode').click();
           		$(".code").val("");
           		$.modal.msg(errmsg);
           		$.common.removeSession("SPRING_SECURITY_LAST_EXCEPTION");
			}
	   });	
	/*]]>*/
</script>
</body>
</html>